package org.itboys.mobile.dto.wallet;

import org.itboys.mobile.dto.common.MobileBaseDto;

import java.math.BigDecimal;

/**
 * Created by zhangyang on 2018/1/10.
 * 圣代_钱包_dto
 */
public class SundayWalletDto extends MobileBaseDto {


    private BigDecimal totalAmount;//账户余额
    //2018年3月9日，新增
    private BigDecimal reward;//提成奖励
    private BigDecimal integral;//可用积分
    private BigDecimal aigouCoin;//爱购币
    //2018年3月5日，增加贝壳
    private  BigDecimal conch;//贝壳余额
    //其他属性
    private Long couponCount;//优惠券数量
    private Long accountCount;//我的账户数量

    //记录页面属性
    private Integer flag;//1-账户余额页面,2-可用积分页面,3-爱购币页面,4-我的提成
    private BigDecimal amount;//根据flag设置对应的值,账户余额页面为余额,可用积分页面为积分,爱购币页面为爱购币

    public SundayWalletDto() {
    }

    public SundayWalletDto(long id, String createTime, String createDate,
                           BigDecimal totalAmount, BigDecimal reward,BigDecimal integral, BigDecimal aigouCoin,BigDecimal conch) {
        super(id, createTime, createDate);
        this.totalAmount = totalAmount;
        this.reward=reward;
        this.integral = integral;
        this.aigouCoin = aigouCoin;
        this.conch=conch;
      /*  this.couponCount = couponCount;
        this.accountCount = accountCount;*/
    }


    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }
    public BigDecimal getReward() {
        return reward;
    }

    public void setReward(BigDecimal reward) {
        this.reward = reward;
    }
    public BigDecimal getIntegral() {
        return integral;
    }

    public void setIntegral(BigDecimal integral) {
        this.integral = integral;
    }

    public BigDecimal getAigouCoin() {
        return aigouCoin;
    }

    public void setAigouCoin(BigDecimal aigouCoin) {
        this.aigouCoin = aigouCoin;
    }

    public BigDecimal getConch() {
        return conch;
    }

    public void setConch(BigDecimal conch) {
        this.conch = conch;
    }

    public Long getCouponCount() {
        return couponCount;
    }

    public void setCouponCount(Long couponCount) {
        this.couponCount = couponCount;
    }

    public Long getAccountCount() {
        return accountCount;
    }

    public void setAccountCount(Long accountCount) {
        this.accountCount = accountCount;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    //获取我的余额,可用积分,爱购币页面标题
    public String getTitle(){
        String title = "";
        if(flag == null){
            return title;
        }
        switch (flag){
            case 1:
                title = "我的余额";
                break;
            case 2:
                title = "可用积分";
                break;
            case 3:
                title = "爱购币";
                break;
            case 4:
                title = "我的提成";
                break;
            case 5:
                title = "提现记录";
                break;
            case 6:
                title = "贝壳";
                break;
            default:
                break;
        }
        return title;
    }






    //获取金额上面显示的小标题
    public String getAmountTitle(){
        String amountTitle = "";
        if(flag == null){
            return amountTitle;
        }
        switch (flag){
            case 1:
                amountTitle = "可用余额（元）";
                break;
            case 2:
                amountTitle = "可用积分（个）";
                break;
            case 3:
                amountTitle = "可用爱购币（个）";
                break;
            case 4:
                amountTitle = "我的提成（元）";
                break;
            default:
                break;
        }
        return amountTitle;
    }


    public String getInfo(){
        return "特殊字段说明:totalAmount;//账户余额reward;//提成奖励integral;//可用积分aigouCoin;//爱购币conch;//贝壳余额;couponCount:优惠券数量,accountCount:我的账户数量,flag:1-账户余额页面,2-可用积分页面,3-爱购币页面,4-我的提成页面";
    }
}
